package com.fausto.learnimprint.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author fausto
 * @since 2022-03-28
 */
@TableName("login")
public class Login implements Serializable {

    private static final long serialVersionUID = 1L;


    private LocalDateTime loginTime;

    /**
     * 最后登录ip
     */
    private String loginIp;

    /**
     * 用户id
     */
    private Integer userId;

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Login{" +
                "loginTime=" + loginTime +
                ", loginIp=" + loginIp +
                ", userId=" + userId +
                "}";
    }
}
